package com.zhai.cloud.home.client;

import com.zhai.cloud.common.domain.Result;
import com.zhai.cloud.home.domain.User;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @package: com.zhai.cloud.user.client
 * @project-name: zhai-cloud
 * @description: //TODO 请对该类编写一个描述
 * @author: Created by 翟凤玺
 * @create-datetime: 2018/5/17 0017 19:09
 */
@FeignClient(name = "zhai-cloud-user")
public interface UserClient {

    @RequestMapping(path = "/user", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)
    Result findByUser(@RequestBody User user);
}
